package com.zm.core.util;

import java.util.ResourceBundle;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

public class Log {
	
		public static Logger errorLogger = null;//错误日志
		public static Logger debugLogger = null;//debug输出日志
		
		static{
			ResourceBundle res = ResourceBundle.getBundle("shoesize");//获取基础配置文件
			PropertyConfigurator.configure(res.getString("errorLogPath"));;//从基础配置文件中获取到log配置文件的路径
			errorLogger = Logger.getLogger("logerError");
			debugLogger = Logger.getLogger("logerDebug");
		}
}
